# import execjs
#
# with open("test.js", "r", encoding="utf-8") as f:
#     js_code = f.read()
#     code_compiled = execjs.compile(js_code)
#     print(code_compiled.call("getAsyncData"))

import subprocess

res = subprocess.run(['node', 'test.js'], capture_output=True, text=True, encoding='utf-8')
print(res)
print(res.stdout)
